<?php


namespace support\utils;


class LoginUtil
{
    /**
     * @return int
     */
    static function getUid(): int
    {
        return intval(request()->uid ?: 0);
    }

    /**
     * @param int $uid
     */
    static function setUid(int $uid): void
    {
        request()->uid = intval($uid);
    }


}